package com.carl.mall.ware;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
// 指定Mapper接口对应的路径
@MapperScan("com.carl.mall.ware.dao")
@EnableDiscoveryClient
@ComponentScan(basePackages = "com.carl")
@EnableFeignClients("com.carl.mall.ware.feign") //远程接口所在的包
public class MallWareApplication {

    public static void main(String[] args) {
        SpringApplication.run(MallWareApplication.class,args);
    }
}
